package com.leetcode.algorithm.y22.todo;

/**
 * 395. 至少有 K 个重复字符的最长子串
 * 
 * https://leetcode.cn/problems/longest-substring-with-at-least-k-repeating-characters/
 * 
 * @author jie.deng
 *
 */
class Question0395Solution01 {

	public int longestSubstring(String s, int k) {
		int[] cntArr = new int[26];
		int len = s.length();
		int left = 0;
		for (int right = 0; right < len; right++) {
			cntArr[s.charAt(right) - 'a']++;

		}
		return k;
	}

}